package com.cos.studentsys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author cos
 * @since 2022-03-29
 */
public class RcMajor extends Model<RcMajor> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "major_id", type = IdType.AUTO)
    private Integer majorId;

    private Integer majorDepartmentId;

    private String majorName;

    public Integer getMajorId() {
        return majorId;
    }

    public void setMajorId(Integer majorId) {
        this.majorId = majorId;
    }
    public Integer getMajorDepartmentId() {
        return majorDepartmentId;
    }

    public void setMajorDepartmentId(Integer majorDepartmentId) {
        this.majorDepartmentId = majorDepartmentId;
    }
    public String getMajorName() {
        return majorName;
    }

    public void setMajorName(String majorName) {
        this.majorName = majorName;
    }

    @Override
    protected Serializable pkVal() {
        return this.majorId;
    }

    @Override
    public String toString() {
        return "RcMajor{" +
            "majorId=" + majorId +
            ", majorDepartmentId=" + majorDepartmentId +
            ", majorName=" + majorName +
        "}";
    }
}
